package cn.hubujyjs.lp.config;

import cn.hubujyjs.lp.bo.UserBo;

public class UserHolder {
    private static final ThreadLocal<UserBo> tl = new ThreadLocal<>();

    public static void saveUser(UserBo user){
        tl.set(user);
    }

    public static UserBo getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
